package com.summer.media;

import java.io.File;
import java.io.IOException;

public class test {
    public static void main(String[] args) throws InterruptedException, IOException {
        File tempFile = File.createTempFile("AAA66666", ".txt");
        tempFile.deleteOnExit();
        System.out.println("临时文件路径："+tempFile.getAbsoluteFile());
        System.out.println("正在删除临时文件...");
        Thread.sleep(20000);
        System.out.println("已删除临时文件");
    }

}
